package com.guoheng.hazard.sys.model.dto;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 类功能描述:　CreateDTO
 *
 * @author Eternal
 * @date 2019-19-11 16:19
 */
public class CreateDTO {

    @NotNull
    private String createBy;

    private Date createTime;

    private Boolean delFlag;

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime = new Date();
    }

    public void setCreateTime(Date createTime) {
        this.createTime = new Date();
    }

    public Boolean getDelFlag() {
        return delFlag = false;
    }

    public void setDelFlag(Boolean delFlag) {
        this.delFlag = false;
    }

    @Override
    public String toString() {
        return "CreateDTO{" +
                "createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", delFlag=" + delFlag +
                '}';
    }
}